/** 在线视频设备 */
import { Get, PostJson }  from './request';

/** 获取全部在线视频设备 */
export const getAllOnlineCameras = () => Get('/zzonlinecamera/all')

/** 获取在线视频设备信息 */
export const getOnlineCameraInfo = (id: number) => Get(`/zzonlinecamera/info/${id}`)

/** 新增在线视频设备 */
export const addOnlineCamera = (data: any) => PostJson('/zzonlinecamera/save', data)

/** 检测摄像头是否在线 
 * ipAddressList
*/
export const checkCameraIpAddressList = (params: any) => Get('/zzonlinecamera/checkIpAddressList', params)

/** 检测摄像头是否在线 
 * ipAddress
*/
export const checkCameraIpAddress = (params: any) => Get('/zzonlinecamera/checkIpAddress', params)